<!DOCTYPE html>
<html>
<head  th:include="head :: fragment_head">
    <title>登录页面</title>
</head>

<body>
<form class="loginForm" action="" th:action="@{/user/loginSubmit}" th:object="${wxUser}" method="post">
    <div class="form-item">
        <input required="required" type="text" name="" placeholder="用户名" th:field="*{username}" />
        <span style="color: red" th:if="${#fields.hasErrors('username')}" th:errors="*{username}"></span>
    </div>
    <div class="form-item">
        <input type="password" name="" placeholder="密码" th:field="*{password}" />
        <span style="color: red" th:if="${#fields.hasErrors('password')}" th:errors="*{password}"></span>
    </div>
    <div class="form-item rememberPassword">
        <div class="form-item-left">
            <input type="checkbox" name="type" id="adviceRadio1" value="1" checked hidden/>
            <label for="adviceRadio1" class="advice"><i class="adviceI"></i><span>记住用户名</span></label>
        </div>
        <div class="form-item-right">
            <input type="checkbox" name="type" id="adviceRadio2" value="2" hidden/>
            <label for="adviceRadio2" class="advice"><i class="adviceI"></i><span>记住密码</span></label>
        </div>
    </div>
    <div class="form-login">
        <button type="submit" class="loginBtn">登录</button>
    </div>
    <div class="form-reset">
        <button type="reset" class="resetBtn">重置</button>
    </div>
    <div class="form-forget">
        <a href="" class="forgetPassword">忘记密码</a>
    </div>
</form>

<div class="footer" th:include="footer :: fragment_footer"></div>
<script type="text/javascript" th:src="@{/js/jquery.min.js}" src="js/jquery.min.js" ></script>
<script type="text/javascript" th:src="@{/js/footer.js}" src="js/footer.js" ></script>
</body>
</html>
